import { CommonEntity } from '../../../../util/entity/common.entity';
import { Column, Entity } from 'typeorm';
import { TransformBigint } from '../../../../util/common-fn';

@Entity('dnf_shop')
export class Shop extends CommonEntity {
  @Column({ comment: '物品名称' })
  name: string;
  @Column({ nullable: true, comment: '图片地址' })
  imageUrl: string;
  @Column({
    transformer: new TransformBigint(),
    type: 'bigint',
    comment: '价格',
  })
  price: number;
  @Column({ comment: '价格类型1-金币 2-点券' })
  priceType: number; // 价格类型 1-金币 2-点券
  @Column({ comment: '物品类型1-增幅器 2-矛盾 3-金币' })
  itemType: number; // 物品类型1-武器 2-矛盾 3-金币
  @Column({
    transformer: new TransformBigint(),
    type: 'bigint',
    comment: '物品数量',
  })
  itemNum: number; // 物品数量
}
